#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int num = 0;
	scanf("%d", &num);//1234

	int cnt = 0;
	do
	{
		cnt++;
		num = num / 10;//num/=10
	} while (num);

	printf("%d\n", cnt);

	return 0;
}
